package com.wave.wavesystem.develop.dbsource.pojo.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;
import java.util.List;

/**
 * MYSQL 连接驱动版本
 */
@AllArgsConstructor
@Getter
public enum DbDriverTypeEnum {

    DRIVER("com.mysql.jdbc.Driver"),
    CJ_DRIVER("com.mysql.cj.jdbc.Driver");

    final String value;

    /**
     * 获取连接驱动版本列表
     */
    public static List<String> getDbDriverTypes() {
        return Arrays.stream(DbDriverTypeEnum.values()).map(DbDriverTypeEnum::getValue).toList();
    }
}
